package com.itheima.service.system;

import com.github.pagehelper.PageInfo;
import com.itheima.doamin.system.User;

import java.util.List;

public interface UserService {
    //根据企业id查询全部
    PageInfo findAll(String companyId, int page, int size);

    public List<User> findAll(String companyId);

    //根据id查询
    User findById(String userId);

    //根据id删除
    void delete(String userId);

    //保存
    void save(User user) throws Exception;

    //更新
    void update(User user);

    //用户拥有的权限id
    List<String> userRoleStr(String id);

    void changeRole(String userid, String[] roleIds);

    //去登录
    User toLogin(String email);
}
